/* src/styles/markdown.css */

/* 基础样式 */
.markdown-content {
    line-height: 1.6;
    color: #333;
}

/* 代码块容器 */
.markdown-content pre {
    position: relative;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* 行内代码 */
.markdown-content code:not(pre code) {
    padding: 0.2em 0.4em;
    background: rgba(175, 184, 193, 0.2);
    border-radius: 3px;
    font-size: 0.9em;
}

/* 行号样式 */
.markdown-content .line-number {
    display: inline-block;
    width: 2em;
    padding-right: 1em;
    color: #666;
    user-select: none;
    opacity: 0.6;
}

/* 标题样式 */
.markdown-content h1 {
    font-size: 2em;
    margin: 1.2em 0 0.6em;
}

.markdown-content h2 {
    font-size: 1.5em;
    margin: 1em 0 0.5em;
}

.markdown-content h3 {
    font-size: 1.3em;
    margin: 0.8em 0 0.4em;
}